package com.dangdang.entity;

import java.util.HashMap;
import java.util.Map;

public class Cart {
    private Map<Integer,CartItem> buyBooks = new HashMap<>();
    private Map<Integer,CartItem> removeBooks = new HashMap<>();
    private Double saveMoney;
    private Double totalMoney;

    public Cart() {
    }

    public Cart(Map<Integer, CartItem> buyBooks, Map<Integer, CartItem> removeBooks, Double saveMoney, Double totalMoney) {
        this.buyBooks = buyBooks;
        this.removeBooks = removeBooks;
        this.saveMoney = saveMoney;
        this.totalMoney = totalMoney;
    }

    public Map<Integer, CartItem> getBuyBooks() {
        return buyBooks;
    }

    public void setBuyBooks(Map<Integer, CartItem> buyBooks) {
        this.buyBooks = buyBooks;
    }

    public Map<Integer, CartItem> getRemoveBooks() {
        return removeBooks;
    }

    public void setRemoveBooks(Map<Integer, CartItem> removeBooks) {
        this.removeBooks = removeBooks;
    }

    public Double getSaveMoney() {
        return saveMoney;
    }

    public void setSaveMoney(Double saveMoney) {
        this.saveMoney = saveMoney;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "buyBooks=" + buyBooks +
                ", removeBooks=" + removeBooks +
                ", saveMoney=" + saveMoney +
                ", totalMoney=" + totalMoney +
                '}';
    }
}
